Chromium Code Reviews| Index: src/debug/debug.cc |
| diff --git a/src/debug/debug.cc b/src/debug/debug.cc |
| index 7287ceb1865ab214ad49bfbfd08d2a87f13b8733..2933b8b92fbba92c83dcf87485013a650ad4c083 100644 |
| --- a/src/debug/debug.cc |
| +++ b/src/debug/debug.cc |
| @@ -809,7 +809,8 @@ bool Debug::SetBreakPointForScript(Handle<Script> script, |
| int* source_position, |
| BreakPositionAlignment alignment) { |
| if (script->type() == Script::TYPE_WASM) { |
| - // TODO(clemensh): set breakpoint for wasm. |
| + return wasm::GetDebugInfo(JSObject::cast(script->wasm_object())) |
| + ->SetBreakPoint(*source_position); |
|
Yang
2016/06/17 18:16:31
The reason we pass in a pointer for source_positio
Clemens Hammacher
2016/06/24 15:12:33
No, the called function just returned false.
I thu
|
| } |
| HandleScope scope(isolate_); |