mirror of
https://github.com/robertkrimen/otto
synced 2025-10-12 20:27:30 +08:00
16 lines
190 B
Go
16 lines
190 B
Go
package otto
|
|
|
|
import (
|
|
. "./terst"
|
|
"testing"
|
|
)
|
|
|
|
func TestError_instanceof(t *testing.T) {
|
|
Terst(t)
|
|
|
|
test := runTest()
|
|
test(`
|
|
(new TypeError()) instanceof Error
|
|
`, "true")
|
|
}
|