The new ScriptObject.declareAndSet method is almost identical, so the existing one could be rewritten to make use of the new one.
Otherwise looks good. Hannes > Am 26.03.2018 um 14:00 schrieb Sundararajan Athijegannathan > <sundararajan.athijegannat...@oracle.com>: > > Please review http://cr.openjdk.java.net/~sundar/8200215/webrev.00/ > Bug: https://bugs.openjdk.java.net/browse/JDK-8200215 > > Thanks, > -Sundar