| Index: src/accessors.cc
|
| diff --git a/src/accessors.cc b/src/accessors.cc
|
| index 47b0a856332e24cec0b4ff7e8ab0666d20ca9dc2..99ea25ad7f56433c161c5ba8869122cda42cbe00 100644
|
| --- a/src/accessors.cc
|
| +++ b/src/accessors.cc
|
| @@ -351,26 +351,6 @@ const AccessorDescriptor Accessors::ScriptColumnOffset = {
|
|
|
|
|
| //
|
| -// Accessors::ScriptData
|
| -//
|
| -
|
| -
|
| -MaybeObject* Accessors::ScriptGetData(Isolate* isolate,
|
| - Object* object,
|
| - void*) {
|
| - Object* script = JSValue::cast(object)->value();
|
| - return Script::cast(script)->data();
|
| -}
|
| -
|
| -
|
| -const AccessorDescriptor Accessors::ScriptData = {
|
| - ScriptGetData,
|
| - IllegalSetter,
|
| - 0
|
| -};
|
| -
|
| -
|
| -//
|
| // Accessors::ScriptType
|
| //
|
|
|
| @@ -620,10 +600,7 @@ MaybeObject* Accessors::FunctionSetPrototype(Isolate* isolate,
|
| }
|
|
|
| Handle<Object> old_value;
|
| - bool is_observed =
|
| - FLAG_harmony_observation &&
|
| - *function == *object &&
|
| - function->map()->is_observed();
|
| + bool is_observed = *function == *object && function->map()->is_observed();
|
| if (is_observed) {
|
| if (function->has_prototype())
|
| old_value = handle(function->prototype(), isolate);
|
| @@ -911,10 +888,10 @@ MaybeObject* Accessors::FunctionGetCaller(Isolate* isolate,
|
| if (caller->shared()->bound()) {
|
| return isolate->heap()->null_value();
|
| }
|
| - // Censor if the caller is not a classic mode function.
|
| + // Censor if the caller is not a sloppy mode function.
|
| // Change from ES5, which used to throw, see:
|
| // https://bugs.ecmascript.org/show_bug.cgi?id=310
|
| - if (!caller->shared()->is_classic_mode()) {
|
| + if (caller->shared()->strict_mode() == STRICT) {
|
| return isolate->heap()->null_value();
|
| }
|
|
|
|
|