OLD | NEW |
1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "src/runtime/runtime-utils.h" | 5 #include "src/runtime/runtime-utils.h" |
6 | 6 |
7 #include "src/arguments.h" | 7 #include "src/arguments.h" |
8 #include "src/bootstrapper.h" | 8 #include "src/bootstrapper.h" |
9 #include "src/debug/debug.h" | 9 #include "src/debug/debug.h" |
10 #include "src/isolate-inl.h" | 10 #include "src/isolate-inl.h" |
(...skipping 1397 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1408 CONVERT_ARG_HANDLE_CHECKED(Object, attributes, 2); | 1408 CONVERT_ARG_HANDLE_CHECKED(Object, attributes, 2); |
1409 return JSReceiver::DefineProperty(isolate, o, name, attributes); | 1409 return JSReceiver::DefineProperty(isolate, o, name, attributes); |
1410 } | 1410 } |
1411 | 1411 |
1412 | 1412 |
1413 RUNTIME_FUNCTION(Runtime_ObjectDefineProperties) { | 1413 RUNTIME_FUNCTION(Runtime_ObjectDefineProperties) { |
1414 HandleScope scope(isolate); | 1414 HandleScope scope(isolate); |
1415 DCHECK(args.length() == 2); | 1415 DCHECK(args.length() == 2); |
1416 CONVERT_ARG_HANDLE_CHECKED(Object, o, 0); | 1416 CONVERT_ARG_HANDLE_CHECKED(Object, o, 0); |
1417 CONVERT_ARG_HANDLE_CHECKED(Object, properties, 1); | 1417 CONVERT_ARG_HANDLE_CHECKED(Object, properties, 1); |
1418 return JSReceiver::DefineProperties(isolate, o, properties); | 1418 ASSIGN_RETURN_FAILURE_ON_EXCEPTION( |
| 1419 isolate, o, JSReceiver::DefineProperties(isolate, o, properties)); |
| 1420 return *o; |
1419 } | 1421 } |
| 1422 |
1420 } // namespace internal | 1423 } // namespace internal |
1421 } // namespace v8 | 1424 } // namespace v8 |
OLD | NEW |