Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 17 for triggered (0.22 sec)

  1. misc/wasm/wasm_exec.js

    				_gotest: {
    					add: (a, b) => a + b,
    				},
    				gojs: {
    					// Go's SP does not change as long as no Go code is running. Some operations (e.g. calls, getters and setters)
    					// may synchronously trigger a Go event handler. This makes Go code get executed in the middle of the imported
    					// function. A goroutine can switch to a new stack if the current stack is too small (see morestack function).
    JavaScript
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon May 22 17:47:47 GMT 2023
    - 16.3K bytes
    - Viewed (1)
  2. src/archive/zip/reader_test.go

    		0xff, 0xff, 0xff, 0x20, 0x00,
    	}
    	defer func() {
    		if r := recover(); r != nil {
    			t.Fatalf("NewReader panicked: %s", r)
    		}
    	}()
    	// Previously, this would trigger a panic as we attempt to read from
    	// an io.SectionReader which would access a slice at a negative offset
    	// as the section reader offset & size were < 0.
    	NewReader(bytes.NewReader(data), int64(len(data))+1875)
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Mar 27 18:23:49 GMT 2024
    - 55.3K bytes
    - Viewed (0)
  3. src/cmd/cgo/internal/test/callback.go

    	// We do not do any explicit checks, just ensure that it does not crash.
    	for _, f := range splitTests {
    		f()
    	}
    }
    
    //export goStackCheck
    func goStackCheck() {
    	// use some stack memory to trigger split stack check
    	var buf [256]byte
    	use(buf[:])
    }
    
    var Used byte
    
    func use(buf []byte) {
    	for _, c := range buf {
    		Used += c
    	}
    }
    
    var splitTests = []func(){
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Fri May 12 12:00:02 GMT 2023
    - 111.5K bytes
    - Viewed (0)
  4. doc/go1.17_spec.html

    In an expression switch,
    the switch expression is evaluated and
    the case expressions, which need not be constants,
    are evaluated left-to-right and top-to-bottom; the first one that equals the
    switch expression
    triggers execution of the statements of the associated case;
    the other cases are skipped.
    If no case matches and there is a "default" case,
    its statements are executed.
    HTML
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Apr 11 20:22:45 GMT 2024
    - 211.6K bytes
    - Viewed (0)
  5. src/cmd/asm/internal/lex/lex_test.go

    			continue
    		}
    		if !strings.Contains(err.Error(), test.error) {
    			t.Errorf("got error %q expected %q", err.Error(), test.error)
    		}
    	}
    }
    
    // firstError returns the first error value triggered by the input.
    func firstError(input *Input) (err error) {
    	panicOnError = true
    	defer func() {
    		panicOnError = false
    		switch e := recover(); e := e.(type) {
    		case nil:
    		case error:
    			err = e
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Tue Aug 29 07:48:38 GMT 2023
    - 5.8K bytes
    - Viewed (0)
  6. doc/go_spec.html

    In an expression switch,
    the switch expression is evaluated and
    the case expressions, which need not be constants,
    are evaluated left-to-right and top-to-bottom; the first one that equals the
    switch expression
    triggers execution of the statements of the associated case;
    the other cases are skipped.
    If no case matches and there is a "default" case,
    its statements are executed.
    HTML
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Apr 26 00:39:16 GMT 2024
    - 279.6K bytes
    - Viewed (0)
  7. api/go1.1.txt

    pkg syscall (darwin-386), const NOTE_SIGNAL = 134217728
    pkg syscall (darwin-386), const NOTE_TRACK = 1
    pkg syscall (darwin-386), const NOTE_TRACKERR = 2
    pkg syscall (darwin-386), const NOTE_TRIGGER = 16777216
    pkg syscall (darwin-386), const NOTE_USECONDS = 2
    pkg syscall (darwin-386), const NOTE_VM_ERROR = 268435456
    pkg syscall (darwin-386), const NOTE_VM_PRESSURE = 2147483648
    Plain Text
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Mar 31 20:37:15 GMT 2022
    - 2.6M bytes
    - Viewed (0)
  8. api/go1.2.txt

    pkg syscall (freebsd-386-cgo), const NOTE_REVOKE ideal-int
    pkg syscall (freebsd-386-cgo), const NOTE_TRACK ideal-int
    pkg syscall (freebsd-386-cgo), const NOTE_TRACKERR ideal-int
    pkg syscall (freebsd-386-cgo), const NOTE_TRIGGER ideal-int
    pkg syscall (freebsd-386-cgo), const NOTE_WRITE ideal-int
    pkg syscall (freebsd-386-cgo), const OCRNL ideal-int
    pkg syscall (freebsd-386-cgo), const ONLCR ideal-int
    Plain Text
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Oct 18 04:36:59 GMT 2013
    - 1.9M bytes
    - Viewed (2)
  9. src/bufio/example_test.go

    			return 0, nil, nil
    		}
    		// There is one final token to be delivered, which may be the empty string.
    		// Returning bufio.ErrFinalToken here tells Scan there are no more tokens after this
    		// but does not trigger an error to be returned from Scan itself.
    		return 0, data, bufio.ErrFinalToken
    	}
    	scanner.Split(onComma)
    	// Scan.
    	for scanner.Scan() {
    		fmt.Printf("%q ", scanner.Text())
    	}
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Oct 23 09:06:30 GMT 2023
    - 4.9K bytes
    - Viewed (0)
  10. src/bytes/bytes_test.go

    		return ((r - 'A' + step) % 26) + 'A'
    	}
    	return r
    }
    
    func TestMap(t *testing.T) {
    	// Run a couple of awful growth/shrinkage tests
    	a := tenRunes('a')
    
    	// 1.  Grow. This triggers two reallocations in Map.
    	maxRune := func(r rune) rune { return unicode.MaxRune }
    	m := Map(maxRune, []byte(a))
    	expect := tenRunes(unicode.MaxRune)
    	if string(m) != expect {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Jan 24 16:07:25 GMT 2024
    - 56.2K bytes
    - Viewed (0)
Back to top