Skip to content
This repository was archived by the owner on Sep 29, 2020. It is now read-only.
This repository was archived by the owner on Sep 29, 2020. It is now read-only.

Issue with Native Rhino object handling when declare in global scope #3

@ic3fox

Description

@ic3fox

Hi,

The current implementation of ExternalScriptable doesn't handle properly Native Rhino Object when there declared in global scope.

var FRUITS = 'apple orange banana';
var COLORS = 'red green yellow';
var RESERVED_WORDS = FRUITS + ' ' + COLORS;
(function(){
  var words = RESERVED_WORDS.split(' ');
  println(words);
  return words.length})()

This function will fail with the current implementation of the rhino-script-engine, while it will work properly using standard Rhino.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions