416 | | == `[StrictTypeChecking]`(m,a,p) FIXME == #StrictTypeChecking |
417 | | |
418 | | Summary: ADD SUMMARY |
419 | | |
420 | | Usage: `[StrictTypeChecking]` can be specified on methods and attributes: |
421 | | {{{ |
422 | | [StringTypeChecking] attribute float x; |
423 | | [StrictTypeChecking] DOMString func(); |
424 | | }}} |
425 | | |
426 | | ADD EXPLANATIONS |
427 | | |
428 | | JSC: `[StrictTypeChecking]` can also be applied to a DOMString parameter in an overloaded method to make the |
429 | | overload resolution only match for ECMAScript types null, undefined, string or object - and not number or boolean. |
430 | | This is to permit overloads which are not "distinguishable" in WebIDL, for example: |
431 | | |
432 | | {{{ |
433 | | interface CanvasFoo { |
434 | | void setColor([StrictTypeChecking] DOMString color); |
435 | | void setColor(float grayLevel); |
436 | | }; |
437 | | }}} |
438 | | |