[SERVER-8201] utils.js JavaScript stomps on native implementation Created: 16/Jan/13  Updated: 11/Jul/16  Resolved: 15/Feb/13

Status: Closed
Project: Core Server
Component/s: JavaScript
Affects Version/s: 2.3.2
Fix Version/s: 2.4.0-rc1

Type: Bug Priority: Minor - P4
Reporter: Aaron Heckmann Assignee: Ben Becker
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
Operating System: ALL
Participants:

 Description   

src/mongo/shell/utils.js

The following shims should be removed now that we use v8 which implements the ES5 standards:

  • String.prototype.trim
  • Array.isArray


 Comments   
Comment by auto [ 15/Feb/13 ]

Author:

{u'date': u'2013-02-15T18:57:45Z', u'name': u'Ben Becker', u'email': u'ben.becker@10gen.com'}

Message: SERVER-8201: clean up String trim functions for ES5
Branch: master
https://github.com/mongodb/mongo/commit/e04cab4ddac153023271141190818c7a1256437c

Comment by Aaron Heckmann [ 16/Jan/13 ]

In that case, Array.isArray is ok since its already conditional.

Comment by Scott Hernandez (Inactive) [ 16/Jan/13 ]

We should probably conditionally include them in case someone compiles with SM.

Generated at Thu Feb 08 03:16:49 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.