istanbul-tools/vendor/github.com/robertkrimen/otto/clone_test.go

19 lines
222 B
Go
Raw Normal View History

2017-08-08 00:30:58 -07:00
package otto
import (
"testing"
)
func TestCloneGetterSetter(t *testing.T) {
vm := New()
vm.Run(`var x = Object.create(null, {
x: {
get: function() {},
set: function() {},
},
})`)
vm.Copy()
}