-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
99 additions
and
84 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,25 @@ | ||
def <BUILTIN>:INTRINSICS.EvalError( | ||
this: ESValue, | ||
ArgumentsList: List[ESValue], | ||
NewTarget: Object | Undefined, | ||
NewTarget: Constructor | Undefined, | ||
): Unknown { | ||
if (< 0 ArgumentsList.length) let message = (pop < ArgumentsList) else let message = absent | ||
if (< 0 ArgumentsList.length) let options = (pop < ArgumentsList) else let options = absent | ||
%0 = (= NewTarget undefined) | ||
if %0 { | ||
if (= NewTarget undefined) { | ||
let newTarget = @EXECUTION_STACK[0].Function | ||
} else { | ||
let newTarget = NewTarget | ||
} | ||
call %1 = clo<OrdinaryCreateFromConstructor>(newTarget, "%EvalError.prototype%", (new ["ErrorData"])) | ||
let O = [? %1] | ||
%2 = (! (= message undefined)) | ||
if %2 { | ||
call %3 = clo<ToString>(message) | ||
let msg = [? %3] | ||
call %4 = clo<CreateNonEnumerableDataPropertyOrThrow>(O, "message", msg) | ||
[! %4] | ||
call %0 = clo<OrdinaryCreateFromConstructor>(newTarget, "%EvalError.prototype%", (new ["ErrorData"])) | ||
let O = [? %0] | ||
%1 = (! (= message undefined)) | ||
if %1 { | ||
call %2 = clo<ToString>(message) | ||
let msg = [? %2] | ||
call %3 = clo<CreateNonEnumerableDataPropertyOrThrow>(O, "message", msg) | ||
[! %3] | ||
} else {} | ||
call %5 = clo<InstallErrorCause>(O, options) | ||
[? %5] | ||
call %4 = clo<InstallErrorCause>(O, options) | ||
[? %4] | ||
return O | ||
} |
25 changes: 12 additions & 13 deletions
25
src/main/resources/manuals/funcs/INTRINSICS.RangeError.ir
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,25 @@ | ||
def <BUILTIN>:INTRINSICS.RangeError( | ||
this: ESValue, | ||
ArgumentsList: List[ESValue], | ||
NewTarget: Object | Undefined, | ||
NewTarget: Constructor | Undefined, | ||
): Unknown { | ||
if (< 0 ArgumentsList.length) let message = (pop < ArgumentsList) else let message = absent | ||
if (< 0 ArgumentsList.length) let options = (pop < ArgumentsList) else let options = absent | ||
%0 = (= NewTarget undefined) | ||
if %0 { | ||
if (= NewTarget undefined) { | ||
let newTarget = @EXECUTION_STACK[0].Function | ||
} else { | ||
let newTarget = NewTarget | ||
} | ||
call %1 = clo<OrdinaryCreateFromConstructor>(newTarget, "%RangeError.prototype%", (new ["ErrorData"])) | ||
let O = [? %1] | ||
%2 = (! (= message undefined)) | ||
if %2 { | ||
call %3 = clo<ToString>(message) | ||
let msg = [? %3] | ||
call %4 = clo<CreateNonEnumerableDataPropertyOrThrow>(O, "message", msg) | ||
[! %4] | ||
call %0 = clo<OrdinaryCreateFromConstructor>(newTarget, "%RangeError.prototype%", (new ["ErrorData"])) | ||
let O = [? %0] | ||
%1 = (! (= message undefined)) | ||
if %1 { | ||
call %2 = clo<ToString>(message) | ||
let msg = [? %2] | ||
call %3 = clo<CreateNonEnumerableDataPropertyOrThrow>(O, "message", msg) | ||
[! %3] | ||
} else {} | ||
call %5 = clo<InstallErrorCause>(O, options) | ||
[? %5] | ||
call %4 = clo<InstallErrorCause>(O, options) | ||
[? %4] | ||
return O | ||
} |
25 changes: 12 additions & 13 deletions
25
src/main/resources/manuals/funcs/INTRINSICS.ReferenceError.ir
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,25 @@ | ||
def <BUILTIN>:INTRINSICS.ReferenceError( | ||
this: ESValue, | ||
ArgumentsList: List[ESValue], | ||
NewTarget: Object | Undefined, | ||
NewTarget: Constructor | Undefined, | ||
): Unknown { | ||
if (< 0 ArgumentsList.length) let message = (pop < ArgumentsList) else let message = absent | ||
if (< 0 ArgumentsList.length) let options = (pop < ArgumentsList) else let options = absent | ||
%0 = (= NewTarget undefined) | ||
if %0 { | ||
if (= NewTarget undefined) { | ||
let newTarget = @EXECUTION_STACK[0].Function | ||
} else { | ||
let newTarget = NewTarget | ||
} | ||
call %1 = clo<OrdinaryCreateFromConstructor>(newTarget, "%ReferenceError.prototype%", (new ["ErrorData"])) | ||
let O = [? %1] | ||
%2 = (! (= message undefined)) | ||
if %2 { | ||
call %3 = clo<ToString>(message) | ||
let msg = [? %3] | ||
call %4 = clo<CreateNonEnumerableDataPropertyOrThrow>(O, "message", msg) | ||
[! %4] | ||
call %0 = clo<OrdinaryCreateFromConstructor>(newTarget, "%ReferenceError.prototype%", (new ["ErrorData"])) | ||
let O = [? %0] | ||
%1 = (! (= message undefined)) | ||
if %1 { | ||
call %2 = clo<ToString>(message) | ||
let msg = [? %2] | ||
call %3 = clo<CreateNonEnumerableDataPropertyOrThrow>(O, "message", msg) | ||
[! %3] | ||
} else {} | ||
call %5 = clo<InstallErrorCause>(O, options) | ||
[? %5] | ||
call %4 = clo<InstallErrorCause>(O, options) | ||
[? %4] | ||
return O | ||
} |
25 changes: 12 additions & 13 deletions
25
src/main/resources/manuals/funcs/INTRINSICS.SyntaxError.ir
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,25 @@ | ||
def <BUILTIN>:INTRINSICS.SyntaxError( | ||
this: ESValue, | ||
ArgumentsList: List[ESValue], | ||
NewTarget: Object | Undefined, | ||
NewTarget: Constructor | Undefined, | ||
): Unknown { | ||
if (< 0 ArgumentsList.length) let message = (pop < ArgumentsList) else let message = absent | ||
if (< 0 ArgumentsList.length) let options = (pop < ArgumentsList) else let options = absent | ||
%0 = (= NewTarget undefined) | ||
if %0 { | ||
if (= NewTarget undefined) { | ||
let newTarget = @EXECUTION_STACK[0].Function | ||
} else { | ||
let newTarget = NewTarget | ||
} | ||
call %1 = clo<OrdinaryCreateFromConstructor>(newTarget, "%SyntaxError.prototype%", (new ["ErrorData"])) | ||
let O = [? %1] | ||
%2 = (! (= message undefined)) | ||
if %2 { | ||
call %3 = clo<ToString>(message) | ||
let msg = [? %3] | ||
call %4 = clo<CreateNonEnumerableDataPropertyOrThrow>(O, "message", msg) | ||
[! %4] | ||
call %0 = clo<OrdinaryCreateFromConstructor>(newTarget, "%SyntaxError.prototype%", (new ["ErrorData"])) | ||
let O = [? %0] | ||
%1 = (! (= message undefined)) | ||
if %1 { | ||
call %2 = clo<ToString>(message) | ||
let msg = [? %2] | ||
call %3 = clo<CreateNonEnumerableDataPropertyOrThrow>(O, "message", msg) | ||
[! %3] | ||
} else {} | ||
call %5 = clo<InstallErrorCause>(O, options) | ||
[? %5] | ||
call %4 = clo<InstallErrorCause>(O, options) | ||
[? %4] | ||
return O | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,25 @@ | ||
def <BUILTIN>:INTRINSICS.TypeError( | ||
this: ESValue, | ||
ArgumentsList: List[ESValue], | ||
NewTarget: Object | Undefined, | ||
NewTarget: Constructor | Undefined, | ||
): Unknown { | ||
if (< 0 ArgumentsList.length) let message = (pop < ArgumentsList) else let message = absent | ||
if (< 0 ArgumentsList.length) let options = (pop < ArgumentsList) else let options = absent | ||
%0 = (= NewTarget undefined) | ||
if %0 { | ||
if (= NewTarget undefined) { | ||
let newTarget = @EXECUTION_STACK[0].Function | ||
} else { | ||
let newTarget = NewTarget | ||
} | ||
call %1 = clo<OrdinaryCreateFromConstructor>(newTarget, "%TypeError.prototype%", (new ["ErrorData"])) | ||
let O = [? %1] | ||
%2 = (! (= message undefined)) | ||
if %2 { | ||
call %3 = clo<ToString>(message) | ||
let msg = [? %3] | ||
call %4 = clo<CreateNonEnumerableDataPropertyOrThrow>(O, "message", msg) | ||
[! %4] | ||
call %0 = clo<OrdinaryCreateFromConstructor>(newTarget, "%TypeError.prototype%", (new ["ErrorData"])) | ||
let O = [? %0] | ||
%1 = (! (= message undefined)) | ||
if %1 { | ||
call %2 = clo<ToString>(message) | ||
let msg = [? %2] | ||
call %3 = clo<CreateNonEnumerableDataPropertyOrThrow>(O, "message", msg) | ||
[! %3] | ||
} else {} | ||
call %5 = clo<InstallErrorCause>(O, options) | ||
[? %5] | ||
call %4 = clo<InstallErrorCause>(O, options) | ||
[? %4] | ||
return O | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,25 @@ | ||
def <BUILTIN>:INTRINSICS.URIError( | ||
this: ESValue, | ||
ArgumentsList: List[ESValue], | ||
NewTarget: Object | Undefined, | ||
NewTarget: Constructor | Undefined, | ||
): Unknown { | ||
if (< 0 ArgumentsList.length) let message = (pop < ArgumentsList) else let message = absent | ||
if (< 0 ArgumentsList.length) let options = (pop < ArgumentsList) else let options = absent | ||
%0 = (= NewTarget undefined) | ||
if %0 { | ||
if (= NewTarget undefined) { | ||
let newTarget = @EXECUTION_STACK[0].Function | ||
} else { | ||
let newTarget = NewTarget | ||
} | ||
call %1 = clo<OrdinaryCreateFromConstructor>(newTarget, "%URIError.prototype%", (new ["ErrorData"])) | ||
let O = [? %1] | ||
%2 = (! (= message undefined)) | ||
if %2 { | ||
call %3 = clo<ToString>(message) | ||
let msg = [? %3] | ||
call %4 = clo<CreateNonEnumerableDataPropertyOrThrow>(O, "message", msg) | ||
[! %4] | ||
call %0 = clo<OrdinaryCreateFromConstructor>(newTarget, "%URIError.prototype%", (new ["ErrorData"])) | ||
let O = [? %0] | ||
%1 = (! (= message undefined)) | ||
if %1 { | ||
call %2 = clo<ToString>(message) | ||
let msg = [? %2] | ||
call %3 = clo<CreateNonEnumerableDataPropertyOrThrow>(O, "message", msg) | ||
[! %3] | ||
} else {} | ||
call %5 = clo<InstallErrorCause>(O, options) | ||
[? %5] | ||
call %4 = clo<InstallErrorCause>(O, options) | ||
[? %4] | ||
return O | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters