diff --git a/tns-core-modules/debugger/webinspector.ios.ts b/tns-core-modules/debugger/webinspector.ios.ts index 47fcf8045..258c5b84e 100644 --- a/tns-core-modules/debugger/webinspector.ios.ts +++ b/tns-core-modules/debugger/webinspector.ios.ts @@ -3,6 +3,7 @@ var inspectorCommands: typeof inspectorCommandTypes = require("./InspectorBacken import * as debuggerDomains from "./debugger"; +declare var __inspectorSendEvent; /** * Checks if the property is a function and if it is, calls it on this. * Designed to support backward compatibility for methods that became properties. @@ -253,3 +254,14 @@ export class NetworkDomainDebugger implements inspectorCommandTypes.NetworkDomai return resourceData; } } + +@inspectorCommands.DomainDispatcher("Runtime") +export class RuntimeDomainDebugger { + constructor() { + __inspectorSendEvent(`{"method":"Runtime.executionContextCreated","params":{"context":{"id":1,"origin":"http://main.xml","name":"","auxData":{"isDefault":true,"frameId":"${frameId}"}}}}`); + } + + compileScript(): { scriptId?: string, exceptionDetails?: Object } { + return {}; + } +} \ No newline at end of file