Lines Matching refs:JavaScript
32 * [Avoid throwing JavaScript errors in C++ methods](#avoid-throwing-javascript-errors-in-c)
33 …* [Avoid throwing JavaScript errors in nested C++ methods](#avoid-throwing-javascript-errors-in-ne…
329 ### Avoid throwing JavaScript errors in C++
332 return the data necessary for constructing the errors to JavaScript,
335 In general, type-checks on arguments should be done in JavaScript
340 the necessary data for constructing errors in JavaScript, pass a context object
346 // Let the JavaScript handle the actual type-checking,
369 // Prefer doing the type-checks in JavaScript
383 #### Avoid throwing JavaScript errors in nested C++ methods
385 When you need to throw a JavaScript exception from C++ (i.e.
386 `isolate()->ThrowException()`), do it as close to the return to JavaScript as
387 possible, and not inside of nested C++ calls. Since this changes the JavaScript