Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for StringError (0.15 sec)

  1. src/regexp/all_test.go

    	`a+`,
    	`a?`,
    	`a|b`,
    	`a*|b*`,
    	`(a*|b)(c*|d)`,
    	`[a-z]`,
    	`[a-abc-c\-\]\[]`,
    	`[a-z]+`,
    	`[abc]`,
    	`[^1234]`,
    	`[^\n]`,
    	`\!\\`,
    }
    
    type stringError struct {
    	re  string
    	err string
    }
    
    var badRe = []stringError{
    	{`*`, "missing argument to repetition operator: `*`"},
    	{`+`, "missing argument to repetition operator: `+`"},
    	{`?`, "missing argument to repetition operator: `?`"},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:36:03 UTC 2024
    - 25.8K bytes
    - Viewed (0)
  2. src/internal/trace/traceviewer/static/trace_viewer_full.html

    return res;}
    function normalizeException(e){if(e===undefined||e===null){return{typeName:'UndefinedError',message:'Unknown: null or undefined exception',stack:'Unknown'};}
    if(typeof(e)==='string'){return{typeName:'StringError',message:e,stack:[e]};}
    let typeName;if(e.name){typeName=e.name;}else if(e.constructor){if(e.constructor.name){typeName=e.constructor.name;}else{typeName='AnonymousError';}}else{typeName='ErrorWithNoConstructor';}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 21 20:45:06 UTC 2023
    - 2.5M bytes
    - Viewed (0)
Back to top