Lines Matching refs:function
76 function testNonStringValues() {
91 var CustomType = function(value) {
93 this.toString = function() {
98 function testCutomType() {
294 assertThrows(function() { "[a-z]+(bar)?".startsWith(/[a-z]+/); }, TypeError);
296 assertThrows(function() { "[a-z]+(bar)?".startsWith(/(bar)?/); }, TypeError);
297 assertThrows(function() { "[a-z]+/(bar)?/".startsWith(/(bar)?/); }, TypeError);
313 assertThrows(function() {
316 assertThrows(function() {
319 assertThrows(function() {
322 assertThrows(function() {
325 assertThrows(function() {
328 assertThrows(function() {
337 "toString": function() { return "abc"; }
340 "toString": function() { return "abc"; }
343 "toString": function() { return "abc"; }
345 assertThrows(function() {
347 "toString": function() { throw RangeError(); }
350 assertThrows(function() {
352 "toString": function() { return "abc"; }
356 assertThrows(function() {
359 assertThrows(function() {
362 assertThrows(function() {
365 assertThrows(function() {
368 assertThrows(function() {
371 assertThrows(function() {
380 "toString": function() {
385 "toString": function() {
390 "toString": function() {
394 assertThrows(function() {
396 "toString": function() { throw RangeError(); }
399 assertThrows(function() {
401 "toString": function() { return "abc"; }