Skip to content

Commit bf72af3

Browse files
committed
replace deprecated __proto__ from js code
1 parent c63ad2d commit bf72af3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dwds/lib/src/debugging/inspector.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ class AppInspector implements AppInspectorInterface {
215215
// We use the JS pseudo-variable 'arguments' to get the list of all arguments.
216216
final send = '''
217217
function () {
218-
if (!(this.__proto__)) { return 'Instance of PlainJavaScriptObject';}
218+
if (!(Object.getPrototypeOf(this))) { return 'Instance of PlainJavaScriptObject';}
219219
return ${globalToolConfiguration.loadStrategy.loadModuleSnippet}("dart_sdk").dart.dsendRepl(this, "$methodName", arguments);
220220
}
221221
''';

0 commit comments

Comments
 (0)