this
value differs between dart2js and Dartium when calling a JS function.
#25658
Labels
web-js-interop
Issues that impact all js interop
I create a function
JsTest
and addedshowThis
function to it. It simply printsthis
value to the console.On the Dart side, I declared
showThis
function with @js annotation.dart2js prints
function JsTest() {}
as I expected, but surprisingly Dartium printsWindow
.The text was updated successfully, but these errors were encountered: