Code Monkey home page Code Monkey logo

Comments (10)

XVincentX avatar XVincentX commented on August 25, 2024 1

It's a runtime error. Let me see if I can easily isolate it.

from abstract-logging.

jsumners avatar jsumners commented on August 25, 2024

I added some extra tests in #3 and they verify cleanly. Can you post a script to replicate your issue?

from abstract-logging.

XVincentX avatar XVincentX commented on August 25, 2024

Just a regular require statement

image

from abstract-logging.

jsumners avatar jsumners commented on August 25, 2024

The properties are not enumerable. Therefore they will not be shown in a serialization of the object.

from abstract-logging.

XVincentX avatar XVincentX commented on August 25, 2024

I'll triple check, but basically I was getting a info is not a function in the code — maybe I did something wrong. Thanks for the clarification though.

from abstract-logging.

XVincentX avatar XVincentX commented on August 25, 2024

For reference @jsumners: stoplightio/prism#816

from abstract-logging.

jsumners avatar jsumners commented on August 25, 2024

Correction, the returned object "inherits" from the prototype where the methods are defined. So the methods are not "own properties" of the returned object. The net effect is the same: they will not be shown in serialization.

from abstract-logging.

jsumners avatar jsumners commented on August 25, 2024

I'll triple check, but basically I was getting a info is not a function in the code

Is that your editor saying that? Or is this an actual runtime error? If it's an actual runtime error then that is why I am asking for a simple reproduction case. I am not seeing this in the test suite or anywhere else I am using the module.

from abstract-logging.

jsumners avatar jsumners commented on August 25, 2024

@XVincentX have you been able to reproduce this?

from abstract-logging.

XVincentX avatar XVincentX commented on August 25, 2024

This can be closed, I was having some problems with the trace method but it does not seem to be related to the library itself.

from abstract-logging.

Related Issues (3)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.