// Test that a native go function can throw exceptions that make it back to the script runner
Test that a native go function can throw exceptions that make it back to the script runner
// Test that a native go function can throw exceptions that make it back to the script runner
func TestUint8ArrayException(t *testing.T) {
	t.Parallel()
	iso := v8.NewIsolate()
	ctx := v8.NewContext(iso)
	if err := injectUint8ArrayTester(ctx); err != nil {
		t.Error(err)
	}
	if _, err := ctx.RunScript("native.reverseUint8Array(\"notanarray\")", ""); err != nil {
		t.Logf("Got expected error from script: %v", err)
	} else {
		t.Errorf("Should have received an error from the script")
	}
}
func TestUint8ArrayException ( t * testing . T ) { t . Parallel ( ) iso := v8 . NewIsolate ( ) ctx := v8 . NewContext ( iso ) if err := injectUint8ArrayTester ( ctx ) ; err != nil { t . Error ( err ) } if _ , err := ctx . RunScript ( " \" \" " , " " ) ; err != nil { t . Logf ( " " , err ) } else { t . Errorf ( " " ) } }
Test that a native go function can throw exceptions that make it back to the script runner
Test that a native go function can throw exceptions that make it back to the script runner