OLD | NEW |
1 // Copyright 2015 the V8 project authors. All rights reserved. | 1 // Copyright 2015 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/pending-compilation-error-handler.h" | 5 #include "src/pending-compilation-error-handler.h" |
6 | 6 |
7 #include "src/debug.h" | 7 #include "src/debug/debug.h" |
8 #include "src/handles.h" | 8 #include "src/handles.h" |
9 #include "src/isolate.h" | 9 #include "src/isolate.h" |
10 #include "src/messages.h" | 10 #include "src/messages.h" |
11 | 11 |
12 namespace v8 { | 12 namespace v8 { |
13 namespace internal { | 13 namespace internal { |
14 | 14 |
15 void PendingCompilationErrorHandler::ThrowPendingError(Isolate* isolate, | 15 void PendingCompilationErrorHandler::ThrowPendingError(Isolate* isolate, |
16 Handle<Script> script) { | 16 Handle<Script> script) { |
17 if (!has_pending_error_) return; | 17 if (!has_pending_error_) return; |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
58 handle(Smi::FromInt(location.end_pos()), isolate), | 58 handle(Smi::FromInt(location.end_pos()), isolate), |
59 SLOPPY).Check(); | 59 SLOPPY).Check(); |
60 | 60 |
61 Handle<Name> key_script = factory->error_script_symbol(); | 61 Handle<Name> key_script = factory->error_script_symbol(); |
62 JSObject::SetProperty(jserror, key_script, script, SLOPPY).Check(); | 62 JSObject::SetProperty(jserror, key_script, script, SLOPPY).Check(); |
63 | 63 |
64 isolate->Throw(*error, &location); | 64 isolate->Throw(*error, &location); |
65 } | 65 } |
66 } // namespace internal | 66 } // namespace internal |
67 } // namespace v8 | 67 } // namespace v8 |
OLD | NEW |