| Index: src/ast.cc
|
| diff --git a/src/ast.cc b/src/ast.cc
|
| index 6b2f48f0172b9bea33bcc7457ce7425d26963eab..997d3e0787bde717314652538d822a2d181704ae 100644
|
| --- a/src/ast.cc
|
| +++ b/src/ast.cc
|
| @@ -180,8 +180,8 @@ int FunctionLiteral::end_position() const {
|
| }
|
|
|
|
|
| -LanguageMode FunctionLiteral::language_mode() const {
|
| - return scope()->language_mode();
|
| +StrictMode FunctionLiteral::strict_mode() const {
|
| + return scope()->strict_mode();
|
| }
|
|
|
|
|
| @@ -379,9 +379,9 @@ void ArrayLiteral::BuildConstantElements(Isolate* isolate) {
|
| } else if (boilerplate_value->IsUninitialized()) {
|
| is_simple = false;
|
| JSObject::SetOwnElement(
|
| - array, i, handle(Smi::FromInt(0), isolate), kNonStrictMode);
|
| + array, i, handle(Smi::FromInt(0), isolate), SLOPPY);
|
| } else {
|
| - JSObject::SetOwnElement(array, i, boilerplate_value, kNonStrictMode);
|
| + JSObject::SetOwnElement(array, i, boilerplate_value, SLOPPY);
|
| }
|
| }
|
|
|
|
|