Skip to content

Commit

Permalink
Update test/nashorn/src/jdk/nashorn/api/scripting/test/ScriptObjectMi…
Browse files Browse the repository at this point in the history
…rrorTest.java

Co-authored-by: Attila Szegedi <szegedi@users.noreply.github.com>
  • Loading branch information
gdams and szegedi committed Jul 21, 2022
1 parent 30c5173 commit f346a12
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -282,7 +282,7 @@ public void conversionTest() throws ScriptException {

ScriptObjectMirror obj = (ScriptObjectMirror)e.eval(
"({ valueOf: function() { return 42 } })");
assertEquals(new Double(42.0), obj.to(Double.class));
assertEquals(Double.valueOf(42.0), obj.to(Double.class));

obj = (ScriptObjectMirror)e.eval(
"({ toString: function() { return 'foo' } })");
Expand Down

0 comments on commit f346a12

Please sign in to comment.