ResourceScriptSource(resource: EncodedResource)
Create a new ResourceScriptSource for the given resource.
resource - the EncodedResource to load the script from
ResourceScriptSource(resource: Resource)
Create a new ResourceScriptSource for the given resource.
resource - the Resource to load the script from (using UTF-8 encoding)