| Index: src/runtime.js
|
| diff --git a/src/runtime.js b/src/runtime.js
|
| index 5339570ef6ee6d8e42430765caf828d7d4efa64e..90fb36b42231c810cf0e74b7684a65f71dbe4e96 100644
|
| --- a/src/runtime.js
|
| +++ b/src/runtime.js
|
| @@ -294,6 +294,20 @@ function BIT_XOR(y) {
|
| }
|
|
|
|
|
| +// ECMA-262, section 11.4.7, page 47.
|
| +function UNARY_MINUS() {
|
| + var x = IS_NUMBER(this) ? this : %NonNumberToNumber(this);
|
| + return %NumberUnaryMinus(x);
|
| +}
|
| +
|
| +
|
| +// ECMA-262, section 11.4.8, page 48.
|
| +function BIT_NOT() {
|
| + var x = IS_NUMBER(this) ? this : %NonNumberToNumber(this);
|
| + return %NumberNot(x);
|
| +}
|
| +
|
| +
|
| // ECMA-262, section 11.7.1, page 51.
|
| function SHL(y) {
|
| var x = IS_NUMBER(this) ? this : %NonNumberToNumber(this);
|
|
|