Please note, this is a STATIC archive of website developer.mozilla.org from 03 Nov 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

Boolean.prototype.toSource()

Niestandardowy
This feature is non-standard and is not on a standards track. Do not use it on production sites facing the Web: it will not work for every user. There may also be large incompatibilities between implementations and the behavior may change in the future.

Podsumowanie

Zwraca łańcuch znaków z kodem źródłowym obiektu.

Składnia

booleanObj.toSource()
Boolean.toSource()

Parametry

Brak.

Opis

Metoda toSource zwraca następujące wartości:

  • dla wbudowanego obiektu Boolean metoda toSource zwraca następujący łańcuch znaków, oznaczający, że kod źródłowy nie jest dostępny:
    function Boolean() {
       [native code]
    }
    
  • dla instancji obiektu Boolean metoda toSource zwraca łańcuch znaków reprezentujący kod źródłowy.

Metoda ta jest zwykle stosowana wewnętrznie przez interpreter JavaScriptu, a nie bezpośrednio w kodzie programów.

Zobacz także

Autorzy i etykiety dokumentu

 Autorzy tej strony: teoli, Witia, Mgjbot, Ptak82, telendt, Takenbot, Marcoos
 Ostatnia aktualizacja: teoli,