1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-25 18:45:06 +00:00
serenity/Base/home/anon/js
Andreas Kling 343e224aa8 LibJS: Implement basic exception throwing
You can now throw exceptions by calling Interpreter::throw_exception().
Anyone who calls ASTNode::execute() needs to check afterwards if the
Interpreter now has an exception(), and if so, stop what they're doing
and simply return.

When catching an exception, we'll first execute the CatchClause node
if present. After that, we'll execute the finalizer block if present.

This is unlikely to be completely correct, but it's a start! :^)
2020-03-24 16:14:10 +01:00
..
array.js LibJS: Add ArrayPrototype and implement Array.prototype.push() 2020-03-20 21:56:40 +01:00
charAt.js LibJS: Replace the global print() function with console.log() :^) 2020-03-16 14:58:20 +01:00
for-loop.js Meta: Add for-loop JavaScript test program 2020-03-12 13:42:23 +01:00
forced-gc.js LibJS: Replace $gc() hack with a NativeFunction on the global object 2020-03-12 20:04:54 +01:00
function-with-arguments.js LibJS: Add test for function with arguments 2020-03-12 13:27:28 +01:00
gc-strings.js LibJS: Delete fully-empty HeapBlocks after garbage collection 2020-03-21 11:46:47 +01:00
hasOwnProperty.js LibJS: Replace the global print() function with console.log() :^) 2020-03-16 14:58:20 +01:00
javascript.files HackStudio: Add Javascript projects 2020-03-13 20:19:01 +01:00
native-function.js LibJS: Replace the global print() function with console.log() :^) 2020-03-16 14:58:20 +01:00
object-expression.js LibJS: Parse object expressions 2020-03-21 10:08:58 +01:00
operator-precedence.js LibJS: Add operator precedence parsing 2020-03-14 00:11:24 +01:00
simple-function.js js: Take the script file as a command-line argument 2020-03-12 10:52:47 +01:00
simple-parse.js js: Take the script file as a command-line argument 2020-03-12 10:52:47 +01:00
simple-scopes.js LibJS: Replace the global print() function with console.log() :^) 2020-03-16 14:58:20 +01:00
simple-variables.js js: Take the script file as a command-line argument 2020-03-12 10:52:47 +01:00
string-length.js LibJS: Implement basic MemberExpression parsing 2020-03-12 13:05:57 +01:00
strings.js LibJS: Replace the global print() function with console.log() :^) 2020-03-16 14:58:20 +01:00
try.js LibJS: Implement basic exception throwing 2020-03-24 16:14:10 +01:00
type-play.js LibJS: Replace the global print() function with console.log() :^) 2020-03-16 14:58:20 +01:00
typeof.js LibJS: Implement typeof operator 2020-03-17 21:28:02 +01:00