V8 experts: having trouble understanding whether `String::NewFromUtf8` can throw a JS exception. From the code, a large enough length should throw: https://gist.github.com/dherman/3f3c36c88de231e918bc51c4fa116453 … But when I test this it doesn't seem to throw…? Any clues?
-
-
The part where Factory::NewStringFromUtf8 calls NewRawTwoByteString and uses ASSIGN_RETURN_ON_EXCEPTION to check for exceptions.
-
I don't have the code in front of me, but iirc this macro throws if the whole process is out of memory. It'll be non trivial to create a test that makes this throw.
- 2 more replies
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
JavaScript, HTML, CSS, HTTP, performance, security, Bash, Unicode, i18n, macOS.