Index: src/runtime/runtime-classes.cc |
diff --git a/src/runtime/runtime-classes.cc b/src/runtime/runtime-classes.cc |
index fe76dfa0dd2564c9787cb9d806084cb74eea4f23..f47abb5b28ea9a46b753b08bd60daf4ea91b7bde 100644 |
--- a/src/runtime/runtime-classes.cc |
+++ b/src/runtime/runtime-classes.cc |
@@ -200,8 +200,9 @@ RUNTIME_FUNCTION(Runtime_DefineClassMethod) { |
CONVERT_ARG_HANDLE_CHECKED(Name, name, 1); |
CONVERT_ARG_HANDLE_CHECKED(JSFunction, function, 2); |
- RETURN_FAILURE_ON_EXCEPTION(isolate, JSObject::DefinePropertyOrElement( |
- object, name, function, DONT_ENUM)); |
+ RETURN_FAILURE_ON_EXCEPTION(isolate, |
+ JSObject::DefinePropertyOrElementIgnoreAttributes( |
+ object, name, function, DONT_ENUM)); |
return isolate->heap()->undefined_value(); |
} |