Skip to content
This repository has been archived by the owner on Oct 15, 2020. It is now read-only.

Commit

Permalink
chakrashim: fixing jslint issues
Browse files Browse the repository at this point in the history
A new rule was added to enforce function declaration style.

PR-URL: #247
Reviewed-By: Hitesh Kanwathirtha <hiteshk@microsoft.com>
Reviewed-By: Kunal Pathak <Kunal.Pathak@microsoft.com>
  • Loading branch information
kfarnung committed May 19, 2017
1 parent 91a9798 commit 9bf51e4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions deps/chakrashim/lib/chakra_shim.js
Original file line number Diff line number Diff line change
Expand Up @@ -278,13 +278,13 @@
Error, EvalError, RangeError, ReferenceError, SyntaxError, TypeError,
URIError
].forEach(function(type) {
var newType = function newType() {
function newType() {
var e = withStackTraceLimitOffset(
3, () => Reflect_construct(type, arguments, new.target || newType));
// skip 3 frames: lambda, withStackTraceLimitOffset, this frame
privateCaptureStackTrace(e, undefined, e, 3);
return e;
};
}

Object_defineProperty(newType, 'name', {
value: type.name,
Expand Down Expand Up @@ -432,11 +432,11 @@
function patchUtils(utils) {
var isUintRegex = /^(0|[1-9]\d*)$/;

var isUint = function(value) {
function isUint(value) {
var result = isUintRegex.test(value);
isUintRegex.lastIndex = 0;
return result;
};
}
utils.cloneObject = function(source, target) {
Object_getOwnPropertyNames(source).forEach(function(key) {
try {
Expand Down

0 comments on commit 9bf51e4

Please sign in to comment.