| Index: src/runtime.js
|
| diff --git a/src/runtime.js b/src/runtime.js
|
| index ce11c37079e6a24b10b4a0fb5d44e76a8dd9ce08..19b858b27ed90cce80cb5aac06b2a1ed8482bf87 100644
|
| --- a/src/runtime.js
|
| +++ b/src/runtime.js
|
| @@ -361,7 +361,7 @@ function IN(x) {
|
| function INSTANCE_OF(F) {
|
| var V = this;
|
| if (!IS_SPEC_FUNCTION(F)) {
|
| - throw %MakeTypeError('instanceof_function_expected', [V]);
|
| + throw %MakeTypeError('instanceof_function_expected', [F]);
|
| }
|
|
|
| // If V is not an object, return false.
|
| @@ -606,7 +606,9 @@ function SameValue(x, y) {
|
| if (IS_NUMBER(x)) {
|
| if (NUMBER_IS_NAN(x) && NUMBER_IS_NAN(y)) return true;
|
| // x is +0 and y is -0 or vice versa.
|
| - if (x === 0 && y === 0 && (1 / x) != (1 / y)) return false;
|
| + if (x === 0 && y === 0 && %_IsMinusZero(x) != %_IsMinusZero(y)) {
|
| + return false;
|
| + }
|
| }
|
| return x === y;
|
| }
|
|
|