Please enable JavaScript to use RhodeCode Enterprise
Commit Description:
add model solution
Commit Description:
add model solution
'use strict' ;
var classof = require ( './_classof' );
var builtinExec = RegExp . prototype . exec ;
// `RegExpExec` abstract operation
// https://tc39.github.io/ecma262/#sec-regexpexec
module . exports = function ( R , S ) {
var exec = R . exec ;
if ( typeof exec === 'function' ) {
var result = exec . call ( R , S );
if ( typeof result !== 'object' ) {
throw new TypeError ( 'RegExp exec method returned something other than an Object or null' );
}
return result ;
}
if ( classof ( R ) !== 'RegExp' ) {
throw new TypeError ( 'RegExp#exec called on incompatible receiver' );
}
return builtinExec . call ( R , S );
};
Site-wide shortcuts
/
Use quick search box
g h
Goto home page
g g
Goto my private gists page
g G
Goto my public gists page
n r
New repository page
n g
New gist page
Repositories
g s
Goto summary page
g c
Goto changelog page
g f
Goto files page
g F
Goto files page with file search activated
g p
Goto pull requests page
g o
Goto repository settings
g O
Goto repository permissions settings