| Index: src/runtime.cc
|
| diff --git a/src/runtime.cc b/src/runtime.cc
|
| index 3acbb81d89dff0c0d2c21003762bb785c6a7df85..7f13fbca9e809cb39283a9530c6bbb15b46251cf 100644
|
| --- a/src/runtime.cc
|
| +++ b/src/runtime.cc
|
| @@ -6284,15 +6284,9 @@ RUNTIME_FUNCTION(Runtime_StringToNumber) {
|
| }
|
|
|
| // Slower case.
|
| - int flags = ALLOW_HEX;
|
| - if (FLAG_harmony_numeric_literals) {
|
| - // The current spec draft has not updated "ToNumber Applied to the String
|
| - // Type", https://bugs.ecmascript.org/show_bug.cgi?id=1584
|
| - flags |= ALLOW_OCTAL | ALLOW_BINARY;
|
| - }
|
| -
|
| - return *isolate->factory()->NewNumber(StringToDouble(
|
| - isolate->unicode_cache(), *subject, flags));
|
| + // Octal and binary are not allowed in ToNumber.
|
| + return *isolate->factory()->NewNumber(
|
| + StringToDouble(isolate->unicode_cache(), *subject, ALLOW_HEX));
|
| }
|
|
|
|
|
|
|