Skip to content

Code review notes #90

@jdalton

Description

@jdalton

I wanted to capture the notes I took during our code review.

Moved

Completed

  • Check if namespace import is constant and if so the bind isn't needed and it can be const.
  • Use arrow functions for module.import and module.exports, module.import, and module.importSync.
  • The namespace object should be Object.create(null)
  • The cache hash - look into mtime + path + version.
  • If a module has import/export add 'use strict'
  • Align setEsModule __esModule property non-enumerable
  • - Make the uniqueKey a fast property by changing the : to a __ or something similar
  • Should addGetters throw? Yes.
  • forEachSetter (use UNDEFINED lookup)

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions