OLD | NEW |
---|---|
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 // LiveEdit feature implementation. The script should be executed after | 5 // LiveEdit feature implementation. The script should be executed after |
6 // debug.js. | 6 // debug.js. |
7 | 7 |
8 // A LiveEdit namespace. It contains functions that modifies JavaScript code | 8 // A LiveEdit namespace. It contains functions that modifies JavaScript code |
9 // according to changes of script source (if possible). | 9 // according to changes of script source (if possible). |
10 // | 10 // |
(...skipping 1103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1114 LiveEdit.Failure = Failure; | 1114 LiveEdit.Failure = Failure; |
1115 | 1115 |
1116 LiveEdit.TestApi = { | 1116 LiveEdit.TestApi = { |
1117 PosTranslator: PosTranslator, | 1117 PosTranslator: PosTranslator, |
1118 CompareStrings: CompareStrings, | 1118 CompareStrings: CompareStrings, |
1119 ApplySingleChunkPatch: ApplySingleChunkPatch | 1119 ApplySingleChunkPatch: ApplySingleChunkPatch |
1120 }; | 1120 }; |
1121 | 1121 |
1122 global.Debug.LiveEdit = LiveEdit; | 1122 global.Debug.LiveEdit = LiveEdit; |
1123 | 1123 |
1124 %InstallToContext(["debug_live_edit", LiveEdit]); | |
Yang
2016/11/17 07:54:08
I don't think we need a context slot for this. We
jgruber
2016/11/17 08:15:03
Good point, this really simplifies things. Done.
| |
1124 }) | 1125 }) |
OLD | NEW |